<div id="notification-manage-view">
  <div class="page">
    <div class="al-list-container">
      <form class="form-horizontal al-search-container" role="form">
        <div class="form-group">
          <label class="col-sm-2 control-label">消息类型</label>
          <div class="col-sm-2">
            <select ng-model="search.buzType" class="form-control"
                    ng-options="option.value as option.name for option in nfBuzTypeList"></select>
          </div>
          <label class="col-sm-2 control-label">发布日期</label>
          <div class="col-sm-2">
            <div class="input-group">
              <input class="form-control" type="text" uib-datepicker-popup="yyyy-MM-dd"
                     ng-model="search.createTimeStart" is-open="enterStart" maxlength="10"
                     close-text="关闭" current-text="今天" clear-text="清空"
                     placeholder=""/>
              <span class="input-group-btn">
                <button type="button" class="btn btn-default" ng-click="enterStart=true">
                  <i class="glyphicon glyphicon-calendar"></i>
                </button>
              </span>
            </div>
          </div>
          <label class="control-label text-center al-fl-lt">&nbsp;&nbsp;~&nbsp;&nbsp;</label>
          <div class="col-sm-2">
            <div class="input-group">
              <input class="form-control" type="text" uib-datepicker-popup="yyyy-MM-dd"
                     ng-model="search.createTimeEnd" is-open="enterEnd" maxlength="10"
                     close-text="关闭" current-text="今天" clear-text="清空"
                     placeholder=""/>
              <span class="input-group-btn">
                <button type="button" class="btn btn-default" ng-click="enterEnd=true">
                  <i class="glyphicon glyphicon-calendar"></i>
                </button>
              </span>
            </div>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-2 col-sm-offset-6">
            <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
          </div>
          <div class="col-sm-2">
            <button type="button" ng-click="resetSearch()" class="btn btn-default">重置</button>
          </div>
          <div class="col-sm-2">
            <button type="button" ng-click="newData()" class="btn btn-primary">新建</button>
          </div>
        </div>
      </form>
      <table ng-table="tableParams"
             class="table  table-bordered table-striped table-condensed al-table-container">
        <thead>
        <tr>
          <td>序号</td>
          <td>消息类型</td>
          <td>消息级别</td>
          <td>接收方</td>
          <td>标题</td>
          <td>发布时间</td>
          <td>状态</td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in $data">
          <td>{{$index+1}}</td>
          <td>{{item.buzType|constantTransfer:nfBuzTypeList}}</td>
          <td>{{item.type|constantTransfer:nfTypeList}}</td>
          <td>{{item.receiverName}}</td>
          <td>{{item.subject}}</td>
          <td>{{item.createTime|dateTransfer:'YYYY-MM-DD HH:mm'}}</td>
          <td>{{item.readFlag|constantTransfer:nfReadFlagList}}</td>
          <td>
            <!--<button class="btn btn-info btn-sm"  ng-if="item.status!=4"-->
                    <!--ng-click="dealData(item)">处理</button>-->
          </td>
        </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
